package com.jy.travel.utils
{
	import com.adobe.serialization.json.JSON;
	
	public class CommonUtils
	{
//		public static const WSDL:String = "http://localhost:8080/Tt/services/LoverService?WSDL";
		public static const WSDL:String = "http://www.flash-mx.com/ws/months.cfc?wsdl";
		
		public static const DEBUG:Boolean = true;
		
		public function CommonUtils()
		{
		}
		
		public static function getObjectJsonString(jsonStr:String):Object {
			var ss:String = jsonStr.substring(1, jsonStr.length - 1);
			var json:Object = JSON.decode(ss);
			return json;
		}

		public static function getArrayJsonString(jsonStr:String):Array {
			var ss:String = jsonStr.substring(1, jsonStr.length - 1);
			var a:Array = JSON.decode(ss) as Array;
			return a;
		}
		
		
	}
}